package com.warmlight.voicepacket.network.api;

import java.util.Map;

import io.reactivex.Flowable;
import okhttp3.ResponseBody;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by weiweijinpeng on 2018/8/13.
 *
 * 页面的评论接口
 */

public interface CommService {

    /**
     * 推荐接口
     * @return
     */
    @FormUrlEncoded
    @POST("post/index")
    Flowable<ResponseBody> setRecomm(@FieldMap Map<String, Object> params);

    /**
     * 点赞接口
     * @return
     */
    @FormUrlEncoded
    @POST("memberLike/up_like")
    Flowable<ResponseBody> setLike(@FieldMap Map<String, Object> params);

    /**
     * 点赞接口
     * @return
     */
    @FormUrlEncoded
    @POST("memberLike/up_like")
    Flowable<ResponseBody> setCommLike(@FieldMap Map<String, Object> params);

    /**
     * 社区详情接口
     * @return
     */
    @FormUrlEncoded
    @POST("post/reply")
    Flowable<ResponseBody> setVDetails(@FieldMap Map<String, Object> params);

    /**
     * 话题详情接口
     * @return
     */
    @FormUrlEncoded
    @POST("post/topic_info")
    Flowable<ResponseBody> setTopic(@FieldMap Map<String, Object> params);
}
